package com.bluejie.bluej.java.thread;

import com.bluejie.bluej.logUtil.LogUtil;
import org.slf4j.Logger;

/**
 * Created by bluej on 2018/1/28.
 */
public class Handle implements Runnable {
    private Logger log = LogUtil.instance(Handle.class);
    private String name;
    public Handle(){}

    public Handle(String name){
        super();
        this.name = name;
    }
    @Override
    public void run() {
        Thread.currentThread().setName(name);
        log.info("---start---");
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        log.info("---over---");

    }


}
